//
//  FocusInfoModel.h
//  govern
//
//  Created by LiangLigeng on 14-8-22.
//  Copyright (c) 2014年 LiangLigeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FocusInfoModel : NSObject


@property (nonatomic,retain) NSString *title;//名称
@property (nonatomic,retain) NSString *ico;//图标
@property (nonatomic,retain) NSString *createdate;//创建时间
@property (nonatomic,retain) NSString *turnUrl;//跳转地址
@property (nonatomic,retain) NSString *type;//是否子栏目 0:否，1:是
@property (nonatomic,retain) NSString *category;//类别
@property (nonatomic,retain) NSString *status;//状态
@property (nonatomic,retain) NSString *ordernum;//排序

//将对象转换为字典
-(NSDictionary *) toDictionary;

+(FocusInfoModel *) focusFromDictionary:(NSDictionary *)dic;

//数据库增删改查
+(BOOL) saveFocus:(FocusInfoModel *)focusModel;

+(BOOL) deleteFocusByTitle:(NSString *)title;

+(NSMutableArray *) getAllFocus;

@end
